package com.contextor.magiccards.game.game;

import com.contextor.magiccards.model.battle.Battle;
import com.contextor.magiccards.model.battle.Combat;
import com.contextor.magiccards.model.character.Personage;
import com.contextor.magiccards.model.errors.MagicCardsException;

import java.util.Collection;

/**
 * User: Sergey
 * Date: 20.03.2011 10:46:48
 */
public interface GameBattleManager {

    Battle create(String uid) throws MagicCardsException;

    Personage loadPersonage(String uid) throws MagicCardsException;

    Combat join(Personage gameOwnerUid, Battle battleTO) throws MagicCardsException;

    Collection<Battle> listReadyToPlay(String uid) throws MagicCardsException;
}
